package com.example.admin.service;



import com.github.pagehelper.PageInfo;
import entity.Admin;
import request.BaseRequest;
import request.LoginRequest;
import request.PasswordRequest;
import request.RegisterRequest;

import java.util.List;

public interface IAdminService {

    List<Admin> list();

    PageInfo<Admin> page(BaseRequest baseRequest);

    void save(RegisterRequest registerRequest);

    void register(RegisterRequest registerRequest);

    Admin getById(Integer id);

    void update(Admin obj);

    void deleteById(Integer id);

//    LoginDTO login(LoginRequest request);

    void changePass(PasswordRequest request);

    Boolean checkLogin(LoginRequest loginRequest);

    Admin getByUsername(String username);



}
